package com.cradom.event.service.impl;

import java.util.Date;
import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.cradom.event.dao.EventDao;
import com.cradom.event.model.Event;
import com.cradom.event.service.EventService;

@Service("eventService")
public class EventServiceImpl implements EventService {

	@Resource
	private EventDao ed;
	
	public List<Event> getEvent() {
		return ed.getEvent();
	}

	public Event getEventDetail(String id) {
		return ed.getEventDetail(id);
	}

	public Integer getNewEventCount() {
		return ed.getNewEventCount();
	}

	public Integer getEventNoFinishCount() {
		return ed.getEventNoFinishCount();
	}

	public Integer getEventFinishByIDCount(String police_id) {
		return ed.getEventFinishByIDCount(police_id);
	}

	public Integer getEventNoFinishByIDCount(String police_id) {
		return ed.getEventNoFinishByIDCount(police_id);
	}

	public List<Event> getNewEvent() {
		return ed.getNewEvent();
	}

	public List<Event> getEventByPhone(String phone) {
		return ed.getEventByPhone(phone);
	}

	public Boolean setPoliceID(String police_id, String event_id,Date police_id_time) {
		return ed.setPoliceID(police_id, event_id,police_id_time);
	}

	public List<Event> getEventNoStartByPhone(String phone) {
		return ed.getEventNoStartByPhone(phone);
	}

	public Boolean setStartTime(String event_id, Date police_start_time) {
		return ed.setStartTime(event_id, police_start_time);
	}

	public Event getEventByID(String id) {
		return ed.getEventByID(id);
	}

	public Boolean updateEvent(Event event) {
		return ed.updateEvent(event);
	}

	public Boolean setFinishTime(String event_id, Date finish_time) {
		return ed.setFinishTime(event_id, finish_time);
	}

	public List<Event> findEventByChildrenName(String name) {
		return ed.findEventByChildrenName(name);
	}

}
